package com.yjqq.test1;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class MapPra {
    public static void main(String[] args) {
        Map<Integer,String> map = new HashMap<Integer,String>();
        map.put(1,"sadad");
        map.put(2,"adaas");

        for (Map.Entry<Integer,String> i : map.entrySet()
        ) {
            System.out.print(i.getKey()+"   ");
            System.out.println(i.getValue());
        }

        for (int i: map.keySet()
             ) {
            System.out.println(i+"   "+map.get(i));
        }


    }
}
